Repository navigation
Send merged PRs to the docs sync webhook - #28
Merged
Merged
Conversation
There was a problem hiding this comment.
Confidence Score: 4/5
Summary
Adds a push-triggered docs-sync webhook notification for merged main-branch PRs. Risk is limited to notification delivery; actionlint, Bash syntax, and seven mocked workflow cases passed. Live webhook delivery and repository-secret configuration were not verified.
Deployed verification not applicable: adapt/platform-cli is outside the adapt/adapt and adapt/platform pilot and has no PR-preview deployment workflow. No verification webhook was sent.
Important Files Changed
| File | Changes |
|---|---|
| .github/workflows/docs-sync.yml | Triggers docs synchronization for merged main-branch PRs through an authenticated webhook. |
Run info
| Field | ID |
|---|---|
| Agent | 0d6ccd7e-b62f-4075-a561-199d1a7b1bf0 |
| Automation | ec14e69d-634f-4af0-a6dd-27aa06a1f6b3 |
| Run | 15f585eb-f909-4cab-b235-30a86b02902a |
Reviewed: 0abc22f-c1807a7 · ↻ Re-run review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docs sync used to listen for merged PRs through the GitHub App, so every run ended with a comment on the PR, even when there was nothing to document. This workflow posts each merged PR to a custom webhook instead, so the agent only opens a docs PR when one is needed, and nothing is posted on this repo.
It runs on the PR's
closedevent when the PR merged into main, and sends{repository, pull_request, sha}with a Bearer secret.pull_request_targetgives the job the secrets; it never checks out PR code and has no token permissions. Same file as adapt/platform.The
DOCS_SYNC_WEBHOOK_URLandDOCS_SYNC_WEBHOOK_SECRETrepo secrets are set.